netsh int ip reset logfile.txt
netsh winsock reset catalog

echo WARNING: this script will delete ALL TAP virtual adapters (use the device manager to delete adapters one at a time)
"C:\Program Files (x86)\OpenVPN\bin\tapinstall.exe" remove tap0901

netsh int ip reset logfile.txt
netsh winsock reset catalog

rem Add a new TAP virtual ethernet adapter
"C:\Program Files (x86)\OpenVPN\bin\tapinstall.exe" install "C:\Program Files (x86)\OpenVPN\driver\OemWin2k.inf" tap0901

netsh int ip reset logfile.txt
netsh winsock reset catalog